﻿<navigation:Page
  x:Class="GranitePackageSystem.Home" 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
  xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
  xmlns:controlsInputToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
  xmlns:layoutToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit"
  mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="480" MaxWidth="1024"
  Style="{StaticResource PageStyle}" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
  <Grid x:Name="LayoutRoot" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
            <RowDefinition Height="333*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="250" />
            <ColumnDefinition Width="550*" />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.ColumnSpan="2" Margin="10" Name="panelTitle">
            <TextBlock Text="Dashboard View" FontSize="18" FontWeight="Bold" HorizontalAlignment="Center" />
        </StackPanel>

        <StackPanel Grid.Row="1" Name="panelLandingNav" Margin="10,10,10,0" Background="#FF484848" Height="Auto" VerticalAlignment="Top" Width="200" HorizontalAlignment="Center">
            <HyperlinkButton x:Name="linkHome" NavigateUri="/Home" TargetName="ContentFrame" Content="Dashboard" Style="{StaticResource LinkStyle}" Foreground="#FF42A1F5" Background="{x:Null}" AllowDrop="True" HorizontalContentAlignment="Left" Margin="16,0,0,0"/>
            <HyperlinkButton x:Name="linkResources" NavigateUri="/Resources" TargetName="ContentFrame" Content="Resources" Style="{StaticResource LinkStyle}" Background="{x:Null}" AllowDrop="True" HorizontalContentAlignment="Left" Margin="16,0,0,0"/>
            <controlsToolkit:Expander ExpandDirection="Down" Name="expanderRequest" Visibility="Collapsed">
                <controlsToolkit:Expander.Header>
                    <TextBlock Text="Current Request" FontSize="12" Foreground="White" TextAlignment="Left" Name="expanderHeader" />
                </controlsToolkit:Expander.Header>
                <controlsToolkit:Expander.Content>
                    <StackPanel HorizontalAlignment="Right" Margin="30,0,0,0" Width="AUTO">
                        <HyperlinkButton x:Name="linkTestingDetails" NavigateUri="/Request/TestingDetails" TargetName="ContentFrame" Content="• Testing Environment" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Visibility="Collapsed" />
                        <HyperlinkButton x:Name="linkPackageDetails" NavigateUri="/Request/PackageDetails" TargetName="ContentFrame" Content="• Package Details" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Visibility="Collapsed" />
                        <HyperlinkButton x:Name="linkLicensingDetails" NavigateUri="/Request/Licensing" TargetName="ContentFrame" Content="• Licensing Details" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Visibility="Collapsed" />
                        <HyperlinkButton x:Name="linkSummaryDetails" NavigateUri="/Request/RequestSummary" TargetName="ContentFrame" Content="• Request Summary" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Visibility="Collapsed" />
                    </StackPanel>
                </controlsToolkit:Expander.Content>
            </controlsToolkit:Expander>
        </StackPanel>
        <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}" Grid.Column="1" Grid.Row="1" Visibility="Collapsed">
            <StackPanel Name="panelFilters" Visibility="Collapsed" Orientation="Horizontal" Margin="5">
                <StackPanel Orientation="Vertical" Width="125">
                    <TextBlock Text="Stage Filter" Height="23" Margin="2"/>
                    <TextBlock Text="Date Filter" Height="23" Margin="2"/>
                    <TextBlock Text="Publisher Filter" Height="23" Margin="2"/>
                </StackPanel>
                <StackPanel Orientation="Vertical" Width="300">
                    <TextBox Name="boxStageFilter" Height="23" Margin="2"/>
                    <TextBox Name="boxDateFilter" Height="23" Margin="2"/>
                    <TextBox Name="boxPublisherFilter" Height="23" Margin="2" />                   
                </StackPanel>
                <StackPanel Orientation="Vertical">
                    <CheckBox Name="checkBoxStageFilter" IsChecked="False" Height="23" Margin="2" Checked="checkBoxStageFilter_Checked" Unchecked="checkBoxStageFilter_Unchecked" />
                    <CheckBox Name="checkBoxDateFilter" IsChecked="False" Height="23" Margin="2" Checked="checkBoxDateFilter_Checked" Unchecked="checkBoxDateFilter_Unchecked" />
                    <CheckBox Name="checkBoxPublisherFilter" IsChecked="False" Height="23" Margin="2" Checked="checkBoxPublisherFilter_Checked" Unchecked="checkBoxPublisherFilter_Unchecked" />
                </StackPanel>
            </StackPanel>
            <sdk:TabControl Name="tabControlDashboard">
                <sdk:TabItem Name="tabMyRequests" Header="My Requests" Visibility="Collapsed" GotFocus="tabMyRequests_GotFocus">
                    <StackPanel>
                        <controlsToolkit:BusyIndicator IsBusy="False" Name="busyIndicatorMyRequests">
                            <sdk:DataGrid AutoGenerateColumns="False" Name="gridMyRequests" GotFocus="gridMyRequests_GotFocus" LoadingRow="gridMyRequests_LoadingRow">
                                <controlsInputToolkit:ContextMenuService.ContextMenu>
                                    <controlsInputToolkit:ContextMenu>
                                        <controlsInputToolkit:MenuItem Name="SelectItem" Header="Select Item" Click="SelectItem_Click" />
                                        <controlsInputToolkit:MenuItem Name="DeleteItem" Header="Delete Item" Click="DeleteItem_Click" />
                                    </controlsInputToolkit:ContextMenu>
                                </controlsInputToolkit:ContextMenuService.ContextMenu>
                                <sdk:DataGrid.Columns>
                                    <sdk:DataGridTextColumn Binding="{Binding EnteredTime}"  Header="Entered Time" IsReadOnly="True" Width="Auto"/>
                                    <sdk:DataGridTextColumn Binding="{Binding Stage}"  Header="Stage" IsReadOnly="True" Width="Auto"/>
                                    <sdk:DataGridTextColumn Binding="{Binding Status}"  Header="Status" IsReadOnly="True" Width="Auto"/>
                                    <sdk:DataGridTextColumn Binding="{Binding packagePublisher}" Header="Publisher" IsReadOnly="True" Width="Auto"/>
                                    <sdk:DataGridTextColumn Binding="{Binding packageName}" Header="Name" IsReadOnly="True" Width="Auto" />
                                    <sdk:DataGridTextColumn Binding="{Binding packageVersion}" Header="Version" IsReadOnly="True" Width="Auto" />
                                </sdk:DataGrid.Columns>
                            </sdk:DataGrid>
                        </controlsToolkit:BusyIndicator>
                        <Button Content="New Request" Name="bntNewRequest" Width="100" Margin="0,10,0,0" HorizontalAlignment="Right" Click="bntNewRequest_Click" />
                    </StackPanel>
                </sdk:TabItem>
                <sdk:TabItem Name="tabAllRequests" Header="All Requests" Visibility="Collapsed" GotFocus="tabAllRequests_GotFocus">
                    <controlsToolkit:BusyIndicator IsBusy="False" Name="busyIndicatorAllRequests">
                        <sdk:DataGrid AutoGenerateColumns="False" Name="gridAllRequests" GotFocus="gridAllRequests_GotFocus" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" MaxHeight="500">
                            <sdk:DataGrid.Columns>
                                <sdk:DataGridTextColumn Binding="{Binding packagePublisher}" Header="Publisher" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding packageName}" Header="Name" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding packageVersion}" Header="Version" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding Requester}" Header="Requester" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding Stage}"  Header="Stage" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding Status}"  Header="Status" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding EnteredTime}"  Header="Entered Time" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding SCCMPackageID}"  Header="Package ID" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding SCCMCollectionID}"  Header="Collection ID" IsReadOnly="True" Width="Auto"/>
                            </sdk:DataGrid.Columns>
                        </sdk:DataGrid>
                    </controlsToolkit:BusyIndicator>
                </sdk:TabItem>
                <sdk:TabItem Name="tabQARequests" Header="QA Requests" Visibility="Collapsed" GotFocus="tabQARequests_GotFocus">
                    <controlsToolkit:BusyIndicator IsBusy="False" Name="busyIndicatorQARequests">
                        <sdk:DataGrid AutoGenerateColumns="False" Name="gridQARequests" GotFocus="gridQARequests_GotFocus"  HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" MaxHeight="500">
                            <sdk:DataGrid.Columns>
                                <sdk:DataGridTextColumn Binding="{Binding packagePublisher}" Header="Publisher" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding packageName}" Header="Name" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding packageVersion}" Header="Version" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding QAOwner}" Header="QA Owner" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding Requester}" Header="Requester" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding Stage}"  Header="Stage" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding Status}"  Header="Status" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding EnteredTime}"  Header="Entered Time" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding SCCMPackageID}"  Header="Package ID" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding SCCMCollectionID}"  Header="Collection ID" IsReadOnly="True" Width="Auto"/>
                            </sdk:DataGrid.Columns>
                        </sdk:DataGrid>
                    </controlsToolkit:BusyIndicator>
                </sdk:TabItem>
                <sdk:TabItem Name="tabLicensingRequests" Header="Licensing Dashboard" Visibility="Collapsed" GotFocus="tabLicensingRequests_GotFocus">
                    <controlsToolkit:BusyIndicator IsBusy="False" Name="busyIndicatorLicensingRequests">
                        <sdk:DataGrid AutoGenerateColumns="False" Name="gridLicensing" GotFocus="gridLicensing_GotFocus">
                            <sdk:DataGrid.Columns>
                                <sdk:DataGridTextColumn Binding="{Binding EnteredTime}"  Header="Entered Time" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding Requester}" Header="Requester" IsReadOnly="True"  Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding LicensingOwner}" Header="Licensing Owner" IsReadOnly="True"  Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding Status}"  Header="Status" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding packagePublisher}" Header="Publisher" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding packageName}" Header="Name" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding packageVersion}" Header="Version" IsReadOnly="True" Width="Auto" />
                            </sdk:DataGrid.Columns>
                        </sdk:DataGrid>
                    </controlsToolkit:BusyIndicator>
                </sdk:TabItem>
                <sdk:TabItem Name="tabDeploymentDashboard" Header="Deployment Dashboard" Visibility="Collapsed" GotFocus="tabDeploymentDashboard_GotFocus">
                    <controlsToolkit:BusyIndicator IsBusy="False" Name="busyIndicatorDeploymentRequests">
                        <sdk:DataGrid AutoGenerateColumns="False" Name="gridDeployment" GotFocus="gridDeployment_GotFocus">
                            <sdk:DataGrid.Columns>
                                <sdk:DataGridTextColumn Binding="{Binding EnteredTime}"  Header="Entered Time" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding Status}"  Header="Status" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding packagePublisher}" Header="Publisher" IsReadOnly="True" Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding packageName}" Header="Name" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding packageVersion}" Header="Version" IsReadOnly="True"  Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding Requester}" Header="Requester" IsReadOnly="True"  Width="Auto"/>
                                <sdk:DataGridTextColumn Binding="{Binding SCCMPackageID}"  Header="Package ID" IsReadOnly="True" Width="Auto" />
                                <sdk:DataGridTextColumn Binding="{Binding SCCMCollectionID}"  Header="Collection ID" IsReadOnly="True" Width="Auto"/>
                            </sdk:DataGrid.Columns>
                        </sdk:DataGrid>
                    </controlsToolkit:BusyIndicator>
                </sdk:TabItem>
            </sdk:TabControl>
        </StackPanel>
        <Border BorderBrush="Silver" BorderThickness="1" Grid.RowSpan="4" Grid.ColumnSpan="3" Name="border1">
        </Border>
    </Grid>
</navigation:Page>